package news.entity;

import java.util.Date;

/**
 * 新闻类
 * 
 * @author Administrator
 *
 */
public class News {
	private int newsid; // 新闻id
	private String title; // 新闻标题
	private String content; // 新闻内容
	private int recommended; // 是否推荐
	private int click; // 点击量
	private Date releasetime; // 发布时间
	private String keywords; // 关键字

	private Users user; // 用户
	private Types type; // 类型

	public int getNewsid() {
		return newsid;
	}

	public void setNewsid(int newsid) {
		this.newsid = newsid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getRecommended() {
		return recommended;
	}

	public void setRecommended(int recommended) {
		this.recommended = recommended;
	}

	public int getClick() {
		return click;
	}

	public void setClick(int click) {
		this.click = click;
	}

	public Date getReleasetime() {
		return releasetime;
	}

	public void setReleasetime(Date releasetime) {
		this.releasetime = releasetime;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public Users getUser() {
		return user;
	}

	public void setUser(Users user) {
		this.user = user;
	}

	public Types getType() {
		return type;
	}

	public void setType(Types type) {
		this.type = type;
	}

	public News() {
	}

	public News(int newsid, String title, String content, int recommended, int click, Date releasetime, String keywords,
			Users user, Types type) {
		this.newsid = newsid;
		this.title = title;
		this.content = content;
		this.recommended = recommended;
		this.click = click;
		this.releasetime = releasetime;
		this.keywords = keywords;
		this.user = user;
		this.type = type;
	}

}
